home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 684 / 684.xpi / chrome / fireftp.jar / content / accountManager.xul < prev    next >
Extensible Markup Language  |  2008-06-28  |  13KB  |  291 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/global.css"   type="text/css"?>
  4. <?xml-stylesheet href="chrome://fireftp/skin/fireftp.css" type="text/css"?>
  5.  
  6. <!DOCTYPE dialog [
  7. <!ENTITY % acctDTD SYSTEM "chrome://fireftp/locale/accountManager.dtd" >
  8. %acctDTD;
  9. <!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
  10. %charsetDTD;
  11. ]>
  12. <!-- Careful: if the id of the dialog is updated you have to update accountManager.js -->
  13. <dialog id             = "accountManager8"
  14.         title          = "&title;"
  15.         xmlns:rdf      = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  16.         xmlns          = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17.         persist        = "screenX screenY"
  18.         onload         = "init()"
  19.         buttons        = "extra2, accept, cancel"
  20.         ondialogaccept = "return doOk()"
  21.         ondialogcancel = "return doCancel()">
  22.  
  23.   <stringbundle id="strings" src="chrome://fireftp/locale/strings.properties"/>
  24.  
  25.   <script type="application/x-javascript" src="chrome://fireftp/content/js/etc/common.js"/>
  26.   <script type="application/x-javascript" src="chrome://fireftp/content/js/etc/fileSort.js"/>
  27.   <script type="application/x-javascript" src="chrome://fireftp/content/js/dialogs/accountManager.js"/>
  28.  
  29.   <tabbox id="tabbox" flex="1">
  30.     <tabs>
  31.       <tab label="&main;"/>
  32.       <tab label="&connections;"/>
  33.       <tab label="&advanced;"/>
  34.     </tabs>
  35.     <tabpanels flex="1">
  36.       <tabpanel id="maintab" orient="vertical">
  37.         <groupbox>
  38.           <caption label="&maindetails;"/>
  39.           <grid flex="1">
  40.             <columns>
  41.               <column/>
  42.               <column flex="1"/>
  43.             </columns>
  44.             <rows>
  45.               <row id="accountrow" align="center">
  46.                 <label   value="&account.label;" accesskey="&account.access;" control="account" tooltiptext="&account.tip;"/>
  47.                 <hbox flex="1" align="center">
  48.                   <textbox  id="account" flex="1"   tooltiptext="&account.tip;"  class="required"  onfocus="autoAccountDisable()"/>
  49.                   <label    value="&folder.label;"  accesskey="&folder.access;"  control="folder"/>
  50.                   <menulist id="folder"  flex="1"   editable="true"/>
  51.                 </hbox>
  52.               </row>
  53.               <row align="center">
  54.                 <label   value="&host.label;"    accesskey="&host.access;"    control="host"    tooltiptext="&host.tip;"/>
  55.                 <textbox id="host"    flex="1"   tooltiptext="&host.tip;"     class="required"  onkeyup="autoAccount()"/>
  56.               </row>
  57.             </rows>
  58.           </grid>
  59.         </groupbox>
  60.  
  61.         <groupbox class="paddingTop">
  62.           <caption label="&id;"/>
  63.           <grid flex="1">
  64.             <columns>
  65.               <column/>
  66.               <column flex="1"/>
  67.             </columns>
  68.             <rows>
  69.               <row align="center">
  70.                 <label   value="&login.label;"    accesskey="&login.access;"    control="login"/>
  71.                 <textbox id="login"/>
  72.               </row>
  73.               <row align="center">
  74.                 <label   value="&password.label;" accesskey="&password.access;" control="password"/>
  75.                 <textbox id="password" type="password"/>
  76.               </row>
  77.               <row>
  78.                 <spacer/>
  79.                 <hbox>
  80.                   <spacer flex="1"/>
  81.                   <checkbox id="anonymous" label="&anonymous.label;" accesskey="&anonymous.access;" oncommand="anonymousChange()"/>
  82.                 </hbox>
  83.               </row>
  84.             </rows>
  85.           </grid>
  86.         </groupbox>
  87.       </tabpanel>
  88.  
  89.       <tabpanel id="connections" orient="vertical">
  90.         <groupbox>
  91.           <caption label="&connection;"/>
  92.           <hbox>
  93.             <checkbox id="pasvmode" label="&pasv.label;" accesskey="&pasv.access;" oncommand="onPassiveChange()"/>
  94.             <spacer flex="1"/>
  95.             <checkbox id="ipmode" label="IPv6" accesskey="I"/>
  96.           </hbox>
  97.           <grid flex="1">
  98.             <columns>
  99.               <column/>
  100.               <column flex="1"/>
  101.             </columns>
  102.             <rows>
  103.               <row align="center">
  104.                 <label    value="&security.label;" accesskey="&security.access;" control="security"/>
  105.                 <hbox align="center">
  106.                   <menulist id="security" flex="1" oncommand="onSecurityChange()">
  107.                     <menupopup>
  108.                       <menuitem label="&none.label;"     value="" selected="true"/>
  109.                       <menuseparator/>
  110.                       <menuitem label="&authtls.label;"  value="authtls"/>
  111.                       <menuitem label="&authssl.label;"  value="authssl"/>
  112.                       <menuitem label="&implicit.label;" value="ssl"/>
  113.                       <menuseparator/>
  114.                       <menuitem label="&sftp.label;"     value="sftp" id="sftp"/>
  115.                     </menupopup>
  116.                   </menulist>
  117.                   <label   id="portlbl" value="&port.label;" accesskey="&port.access;" control="port"/>
  118.                   <textbox id="port" size="5" type="number" min="0" max="65535" increment="1" hidespinbuttons="true"/>
  119.                 </hbox>
  120.               </row>
  121.               <row align="center">
  122.                 <label   id="privatekeylbl" value="&privatekey.label;" accesskey="&privatekey.access;" control="privatekey"/>
  123.                 <hbox align="center">
  124.                   <textbox id="privatekey"    flex="1"/>
  125.                   <button  id="privatekeyBrowse"     label="&pkbrowse.label;"  accesskey="&pkbrowse.access;"  oncommand="privateKeyBrowse()"/>
  126.                   <button  id="privatekeyConvert"    label="&pkconvert.label;" oncommand="privateKeyConvert()"/>
  127.                 </hbox>
  128.               </row>
  129.             </rows>
  130.           </grid>
  131.         </groupbox>
  132.  
  133.         <groupbox class="paddingTop">
  134.           <caption label="&initialdir;"/>
  135.           <grid flex="1">
  136.             <columns>
  137.               <column/>
  138.               <column flex="1"/>
  139.             </columns>
  140.             <rows>
  141.               <row align="center">
  142.                 <label value="&localdir.label;" accesskey="&localdir.access;" control="localdir"/>
  143.                 <hbox>
  144.                   <textbox id="localdir" flex="1"  oninput="initialDirChange()"/>
  145.                   <button  id="localdirButton"     label="¤t.label;" accesskey="¤tl.access;" oncommand="useCurrentLocal()"/>
  146.                 </hbox>
  147.               </row>
  148.               <row align="center">
  149.                 <label value="&remotedir.label;" accesskey="&remotedir.access;" control="remotedir"/>
  150.                 <hbox>
  151.                   <textbox id="remotedir" flex="1" oninput="initialDirChange()"/>
  152.                   <button  id="remotedirButton"    label="¤t.label;" accesskey="¤tr.access;" oncommand="useCurrentRemote()"/>
  153.                 </hbox>
  154.               </row>
  155.               <row>
  156.                 <spacer/>
  157.                 <hbox>
  158.                   <spacer flex="1"/>
  159.                   <checkbox id="treesync" label="&treesync.label;" accesskey="&treesync.access;"/>
  160.                 </hbox>
  161.               </row>
  162.             </rows>
  163.           </grid>
  164.         </groupbox>
  165.       </tabpanel>
  166.  
  167.       <tabpanel id="advancedtab" orient="vertical">
  168.         <groupbox>
  169.           <caption label="&webhost;"/>
  170.           <grid flex="1">
  171.             <columns>
  172.               <column/>
  173.               <column flex="1"/>
  174.             </columns>
  175.             <rows>
  176.               <row align="center">
  177.                 <label   value="&host.label;"   accesskey="&webhost.access;" control="webhost" tooltiptext="&webhost.tip;"/>
  178.                 <textbox id="webhost" flex="1"  tooltiptext="&webhost.tip;"/>
  179.               </row>
  180.               <row align="center">
  181.                 <label   value="&prefix.label;" accesskey="&prefix.access;"  control="prefix"  tooltiptext="&prefix.tip;"/>
  182.                 <textbox id="prefix" flex="1"   tooltiptext="&prefix.tip;"/>
  183.               </row>
  184.             </rows>
  185.           </grid>
  186.         </groupbox>
  187.  
  188.         <hbox>
  189.           <groupbox>
  190.             <caption label="&timezone.label;"/>
  191.             <hbox align="center">
  192.               <label   value="&hours.label;" control="timezoneHours"/>
  193.               <textbox id="timezoneHours"   size="3" type="number" min="-24" max="24" increment="1"/>
  194.               <label   value="&minutes.label;" control="timezoneMinutes"/>
  195.               <textbox id="timezoneMinutes" size="3" type="number" min="-59" max="59" increment="1"/>
  196.             </hbox>
  197.           </groupbox>
  198.  
  199.           <groupbox orient="horizontal" align="center" flex="1">
  200.             <caption label="&encoding.label;"/>
  201.             <label   value="&charset.label;" control="encoding"/>
  202.             <button id           = "encoding"
  203.                     type         = "menu"
  204.                     label        = "UTF-8"
  205.                     datasources  = "rdf:charset-menu"
  206.                     ref          = "NC:BrowserCharsetMenuRoot"
  207.                     onpopupshown = "createMenu('more-menu');"
  208.                     oncommand    = "chooseCharset(event)">   <!-- modified from browser.xul -->
  209.               <menupopup>
  210.                 <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
  211.                   <template>
  212.                     <rule>
  213.                       <menupopup>
  214.                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  215.                       </menupopup>
  216.                     </rule>
  217.                   </template>
  218.                   <menupopup>
  219.                   </menupopup>
  220.                 </menu>
  221.                 <menu label="&charsetMenuMore2.label;" accesskey="&charsetMenuMore2.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
  222.                   <template>
  223.                     <rule>
  224.                       <menupopup>
  225.                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  226.                       </menupopup>
  227.                     </rule>
  228.                   </template>
  229.                   <menupopup>
  230.                   </menupopup>
  231.                 </menu>
  232.                 <menu label="&charsetMenuMore3.label;" accesskey="&charsetMenuMore3.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
  233.                   <template>
  234.                     <rule>
  235.                       <menupopup>
  236.                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  237.                       </menupopup>
  238.                     </rule>
  239.                   </template>
  240.                   <menupopup>
  241.                   </menupopup>
  242.                 </menu>
  243.                 <menu label="&charsetMenuMore4.label;" accesskey="&charsetMenuMore4.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
  244.                   <template>
  245.                     <rule>
  246.                       <menupopup>
  247.                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  248.                       </menupopup>
  249.                     </rule>
  250.                   </template>
  251.                   <menupopup>
  252.                   </menupopup>
  253.                 </menu>
  254.                 <menu label="&charsetMenuMore5.label;" accesskey="&charsetMenuMore5.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
  255.                   <template>
  256.                     <rule>
  257.                       <menupopup>
  258.                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  259.                       </menupopup>
  260.                     </rule>
  261.                   </template>
  262.                   <menupopup>
  263.                   </menupopup>
  264.                 </menu>
  265.                 <menu label="&charsetMenuUnicode.label;" accesskey="&charsetMenuUnicode.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserUnicodeCharsetMenuRoot">
  266.                   <template>
  267.                     <rule>
  268.                       <menupopup>
  269.                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  270.                       </menupopup>
  271.                     </rule>
  272.                   </template>
  273.                   <menupopup>
  274.                   </menupopup>
  275.                 </menu>
  276.               </menupopup>
  277.             </button>
  278.           </groupbox>
  279.         </hbox>
  280.  
  281.         <groupbox>
  282.           <caption label="¬es.label;"/>
  283.           <textbox id="notes" multiline="true" rows="3"/>
  284.         </groupbox>
  285.  
  286.       </tabpanel>
  287.     </tabpanels>
  288.   </tabbox>
  289.  
  290. </dialog>
  291.